using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class FaceBookAuthResponse : GeneratedMessageLite<FaceBookAuthResponse, FaceBookAuthResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<FaceBookAuthResponse, FaceBookAuthResponse.Builder>
		{
			private bool resultIsReadOnly;
			private FaceBookAuthResponse result;
			protected override FaceBookAuthResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override FaceBookAuthResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override FaceBookAuthResponse DefaultInstanceForType
			{
				get
				{
					return FaceBookAuthResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public ulong FBUserID
			{
				get
				{
					return this.result.FBUserID;
				}
				set
				{
					this.SetFBUserID(value);
				}
			}
			public string FBUserName
			{
				get
				{
					return this.result.FBUserName;
				}
				set
				{
					this.SetFBUserName(value);
				}
			}
			public Builder()
			{
				this.result = FaceBookAuthResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(FaceBookAuthResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private FaceBookAuthResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					FaceBookAuthResponse other = this.result;
					this.result = new FaceBookAuthResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override FaceBookAuthResponse.Builder Clear()
			{
				this.result = FaceBookAuthResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override FaceBookAuthResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new FaceBookAuthResponse.Builder(this.result);
				}
				return new FaceBookAuthResponse.Builder().MergeFrom(this.result);
			}
			public override FaceBookAuthResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override FaceBookAuthResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is FaceBookAuthResponse)
				{
					return this.MergeFrom((FaceBookAuthResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override FaceBookAuthResponse.Builder MergeFrom(FaceBookAuthResponse other)
			{
				return this;
			}
			public override FaceBookAuthResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override FaceBookAuthResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(FaceBookAuthResponse._faceBookAuthResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = FaceBookAuthResponse._faceBookAuthResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasFBUserID = input.ReadUInt64(ref this.result.fBUserID_);
							continue;
						}
						if (num3 == 26u)
						{
							this.result.hasFBUserName = input.ReadString(ref this.result.fBUserName_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public FaceBookAuthResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public FaceBookAuthResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public FaceBookAuthResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public FaceBookAuthResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public FaceBookAuthResponse.Builder SetFBUserID(ulong value)
			{
				this.PrepareBuilder();
				this.result.hasFBUserID = true;
				this.result.fBUserID_ = value;
				return this;
			}
			public FaceBookAuthResponse.Builder ClearFBUserID()
			{
				this.PrepareBuilder();
				this.result.hasFBUserID = false;
				this.result.fBUserID_ = 0uL;
				return this;
			}
			public FaceBookAuthResponse.Builder SetFBUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasFBUserName = true;
				this.result.fBUserName_ = value;
				return this;
			}
			public FaceBookAuthResponse.Builder ClearFBUserName()
			{
				this.PrepareBuilder();
				this.result.hasFBUserName = false;
				this.result.fBUserName_ = "";
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int FBUserIDFieldNumber = 2;
		public const int FBUserNameFieldNumber = 3;
		private static readonly FaceBookAuthResponse defaultInstance;
		private static readonly string[] _faceBookAuthResponseFieldNames;
		private static readonly uint[] _faceBookAuthResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasFBUserID;
		private ulong fBUserID_;
		private bool hasFBUserName;
		private string fBUserName_ = "";
		private int memoizedSerializedSize = -1;
		public static FaceBookAuthResponse DefaultInstance
		{
			get
			{
				return FaceBookAuthResponse.defaultInstance;
			}
		}
		public override FaceBookAuthResponse DefaultInstanceForType
		{
			get
			{
				return FaceBookAuthResponse.DefaultInstance;
			}
		}
		protected override FaceBookAuthResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public ulong FBUserID
		{
			get
			{
				return this.fBUserID_;
			}
		}
		public string FBUserName
		{
			get
			{
				return this.fBUserName_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.hasFBUserID && this.BaseResponse.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasFBUserID)
				{
					num += CodedOutputStream.ComputeUInt64Size(2, this.FBUserID);
				}
				if (this.hasFBUserName)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.FBUserName);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private FaceBookAuthResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] faceBookAuthResponseFieldNames = FaceBookAuthResponse._faceBookAuthResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, faceBookAuthResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasFBUserID)
			{
				output.WriteUInt64(2, faceBookAuthResponseFieldNames[1], this.FBUserID);
			}
			if (this.hasFBUserName)
			{
				output.WriteString(3, faceBookAuthResponseFieldNames[2], this.FBUserName);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasFBUserID)
			{
				num ^= this.fBUserID_.GetHashCode();
			}
			if (this.hasFBUserName)
			{
				num ^= this.fBUserName_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			FaceBookAuthResponse faceBookAuthResponse = object_0 as FaceBookAuthResponse;
			return faceBookAuthResponse != null && (this.hasBaseResponse == faceBookAuthResponse.hasBaseResponse && (!this.hasBaseResponse || this.baseResponse_.Equals(faceBookAuthResponse.baseResponse_))) && (this.hasFBUserID == faceBookAuthResponse.hasFBUserID && (!this.hasFBUserID || this.fBUserID_.Equals(faceBookAuthResponse.fBUserID_))) && (this.hasFBUserName == faceBookAuthResponse.hasFBUserName && (!this.hasFBUserName || this.fBUserName_.Equals(faceBookAuthResponse.fBUserName_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<FaceBookAuthResponse, FaceBookAuthResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<FaceBookAuthResponse, FaceBookAuthResponse.Builder>.PrintField("FBUserID", this.hasFBUserID, this.fBUserID_, writer);
			GeneratedMessageLite<FaceBookAuthResponse, FaceBookAuthResponse.Builder>.PrintField("FBUserName", this.hasFBUserName, this.fBUserName_, writer);
		}
		public static FaceBookAuthResponse ParseFrom(byte[] data)
		{
			return FaceBookAuthResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private FaceBookAuthResponse MakeReadOnly()
		{
			return this;
		}
		public static FaceBookAuthResponse.Builder CreateBuilder()
		{
			return new FaceBookAuthResponse.Builder();
		}
		public override FaceBookAuthResponse.Builder ToBuilder()
		{
			return FaceBookAuthResponse.CreateBuilder(this);
		}
		public override FaceBookAuthResponse.Builder CreateBuilderForType()
		{
			return new FaceBookAuthResponse.Builder();
		}
		public static FaceBookAuthResponse.Builder CreateBuilder(FaceBookAuthResponse prototype)
		{
			return new FaceBookAuthResponse.Builder(prototype);
		}
		static FaceBookAuthResponse()
		{
			FaceBookAuthResponse.defaultInstance = new FaceBookAuthResponse().MakeReadOnly();
			FaceBookAuthResponse._faceBookAuthResponseFieldNames = new string[]
			{
				"BaseResponse",
				"FBUserID",
				"FBUserName"
			};
			FaceBookAuthResponse._faceBookAuthResponseFieldTags = new uint[]
			{
				10u,
				16u,
				26u
			};
			object.ReferenceEquals(micromsg.Proto.FaceBookAuthResponse.Descriptor, null);
		}
	}
}
